CRPEJob::SelectPrinter

Use CRPEJob::SelectPrinter to specify the printer and/or print characteristics for the print job. You can use this method to enable the user to select a printer other than the default printer at print time. One way of doing this is to have your application call the Windows common Print Setup dialog box.

Syntax
BOOL SelectPrinter (
        const _TCHAR *driverName,
        const _TCHAR *printerName,
        const _TCHAR *portName,
        const DEVMODE *mode = 0 );
Parameters

driverName

Specifies a pointer to the name of the printer driver for the printer being selected.

printerName

Specifies a pointer to the name of the printer being selected (as indicated in the Printers Control Panel).

portName

Specifies a pointer to the name of the port to which the printer is attached (for example, "LPT1").

mode

Specifies a pointer to a Windows API DEVMODE structure. The default implementation of CRPEJob::SelectPrinter ignores this parameter. For more information, see DEVMODE.

Returns


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com